package org.ecbox.sdk.dict;

/**
 * 性别
 * 
 * File: Gender.java<br/>
 * Description: <br/>
 * 
 * Copyright: Copyright (c) 2012 ecbox.com<br/>
 * Company: ECBOX,Inc.<br/>
 * 
 * @author chenxiaochun
 * @date 2013-1-28
 * @version 1.0
 */
public enum Gender {

  MALE("男"), //
  FEMALE("女"), //
  UNKNOW("未知");

  private String name;

  private Gender(String name) {
    this.name = name;
  }

  public static Gender getType(String name) {
    for (Gender type : Gender.values()) {
      if (type.getName().equals(name)) {
        return type;
      }
    }
    return Gender.UNKNOW;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

}
